/*
 *  Copyright 2004 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.model.testimonials;

import com.blandware.atleap.model.core.Page;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>Class that represents testimonial. Testimonial is a special case of
 * {@link Page}; it has title (which is called <em>subscription</em>), body and
 * no other content fields. Body contains testimonial itself, subscription
 * usually contains its author. Random testimonial is shown to user.
 * </p>
 * <p>
 * Although testimonial is technically Page, no role check is made on
 * testimonial view.
 * </p>
 * <p>
 * Testimonial may be active (then it's shown to users), or inactive (then it
 * will not be shown).
 * </p>
 * <p><a href="Testimonial.java.html"><i>View Source</i></a>
 * </p>
 * <p/>
 *
 * @author Andrey Grebnev <a href="mailto:andrey.grebnev@blandware.com">&lt;andrey.grebnev@blandware.com&gt;</a>
 * @version $Revision: 1.11 $ $Date: 2005/10/19 07:28:17 $
 * @struts.form include-all="false" extends="BaseForm" resetMappedProperties="false"
 * @hibernate.joined-subclass table="`al_testimonials_testimonial`" lazy="false"
 * @hibernate.joined-subclass-key column="`page_id`"
 */
public class Testimonial extends Page {

	//~ Instance variables

	/**
	 * Testimonial body
	 */
	protected Map body = new HashMap();

	//~ Methods

	// Internal field values

	/**
     * Gets bodies map
     *
	 * @return mapping from locale identifiers to bodies
	 * @struts.form-field
	 */
	public Map getBody() {
		return body;
	}

    /**
     * Sets bodies map
     *
     * @param body mapping from locale identifiers to bodies
     */
	public void setBody(Map body) {
		this.body = body;
	}

}
